include/compat: produce stubs for headers not otherwise generated
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 15:57:52 +0000 (16:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 15:57:52 +0000 (16:57 +0100)
commitc871e05e138aae2ac75e9b4ccebe6cf3fd1a775b
treed3eeca705f2cd4a9d90a77affe4bf19705dc8cf5
parent1d7a388e7b9711cbd7e14b2020b168b6789772af
include/compat: produce stubs for headers not otherwise generated

Public headers can include other public headers. Such interdependencies
are retained in their compat counterparts. Since some compat headers are
generated only in certain configurations, the referenced headers still
need to exist. The lack thereof was observed with hvm/hvm_op.h needing
trace.h, where generation of the latter depends on TRACEBUFFER=y. Make
empty stubs in such cases (as generating the extra headers is relatively
slow and hence better to avoid). Changes to .config and incrementally
(re-)building is covered by the respective .*.cmd then no longer
matching the command to be used, resulting in the necessary re-creation
of the (possibly stub) header.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
master commit: 6bec713f871f21c6254a5783c1e39867ea828256
master date: 2023-01-12 16:17:54 +0100
xen/include/Makefile